package com.gao.mytest;

//import org.apache.commons.lang.StringUtils


import java.text.SimpleDateFormat;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.util.Date;
import java.util.List;

/**
 * @author gaofeng
 * @date 2022年08月17日 14:27
 */
public class MyTest {
    public static void main(String[] args) {

        LocalDate dStart = Instant.ofEpochMilli(Long.parseLong(String.valueOf(1664553600000L))).atZone(ZoneOffset.ofHours(8)).toLocalDate();
        LocalDate dEnd = Instant.ofEpochMilli(Long.parseLong(String.valueOf(1669305599999L))).atZone(ZoneOffset.ofHours(8)).toLocalDate();

        String day = new SimpleDateFormat("yyyy-MM-dd").format(new Date(1664553600000L));

        System.out.println(day);
        System.out.println("开始时间" + dStart);
        System.out.println("开始时间" + dEnd);


        String str = "";
/*        // "" 会绕过这个判断
        System.out.println(StringUtils.isEmpty(str));
        System.out.println(StringUtils.isBlank(str));*/

        System.out.println(str.equalsIgnoreCase("aaa"));

        List<String> strs = null;
        for (String s : strs) {
            System.out.println(s);
        }
    }
}
